package com.k2data.client;//package com.k2data.client;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import com.k2data.services.helloworld.HelloWorldPortType;
//import com.k2data.types.helloworld.Greeting;
//import com.k2data.types.helloworld.ObjectFactory;
//import com.k2data.types.helloworld.Person;
//
//@Component
//public class HelloWorldClient {
//
//    private static final Logger LOGGER = LoggerFactory
//            .getLogger(HelloWorldClient.class);
//
//    @Autowired
//    private HelloWorldPortType helloWorldClientProxyBean;
//
//    public String sayHello(String firstName, String lastName) {
//
//        ObjectFactory factory = new ObjectFactory();
//        Person person = factory.createPerson();
//
//        person.setFirstName(firstName);
//        person.setLastName(lastName);
//
//        LOGGER.info("Client sending person=[firstName:{},lastName:{}]",
//                person.getFirstName(), person.getLastName());
//
//        Greeting greeting = (Greeting) helloWorldClientProxyBean
//                .sayHello(person);
//
//        LOGGER.info("Client received greeting=[{}]",
//                greeting.getGreeting());
//        return greeting.getGreeting();
//    }
//}